const { Schema, model } = require("mongoose");
const errorSchema = new Schema(
  {
    studentId: {   // 所属学员 _id
        type: Schema.Types.ObjectId,
        ref: 'studentsModel'
    },
    exerciseId: {
        type: Schema.Types.ObjectId,
        ref: 'exercisesModel'
    },
    errorAnswer: String, // 错误答案
},
  { versionKey: false }
);
// 配置数据模型
const errorModel = model("errorModel", errorSchema, "errors");
//module.exports.classesModel = classesModel;
module.exports = {
  errorModel
};
